

package com.tsh.core.launch.config;

import com.tsh.core.launch.props.TshPropertySourcePostProcessor;
import com.tsh.core.launch.props.TshProperties;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;

/**
 * tsh property config
 *
 */
@AutoConfiguration
@Order(Ordered.HIGHEST_PRECEDENCE)
@EnableConfigurationProperties(TshProperties.class)
public class TshPropertyConfiguration {

	@Bean
	public TshPropertySourcePostProcessor tshPropertySourcePostProcessor() {
		return new TshPropertySourcePostProcessor();
	}

}
